Skip to content

Conversation

@crwells
Copy link

@crwells crwells commented Sep 4, 2025

Motivation and Context (Why the change? What's the scenario?)

For SQL Server 2025, the PrepareGetSimilarRecordsListQuery() method produces a query that does not account for the index that is being searched. This only happens when NativeVectorSearch is true and the VectorQueryProvider is used. The DefaultQueryProvider does not suffer from the same problem (though may benefit from the same fix performance-wise) because it links to tables that are index-specific, like [{embeddingstable}_{index}] which naturally limits the memories via the inner join.

High level description (Approach, Design)

Simply add in the [collection]=@index criteria.

@crwells crwells requested a review from dluc as a code owner September 4, 2025 14:58
@dluc dluc closed this Nov 3, 2025
@dluc
Copy link
Collaborator

dluc commented Nov 3, 2025

Closing as part of repository maintenance - no further action planned on this issue.

@microsoft microsoft locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants